﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AMStudio.Common;

namespace AMStudio.UserInterface
{
    public class OvenUI : AMStudio.Common.AWinFormModule
    {
        public OvenUI()
        {
            this.UIName = "OvenUI";
            InitializeComponent();
        }
        private DevComponents.DotNetBar.PanelEx panelEx1;
        private DevComponents.DotNetBar.ButtonX buttonX1;
        private DevComponents.DotNetBar.ButtonX buttonX5;
        private DevComponents.DotNetBar.ButtonX buttonX3;
        private DevComponents.DotNetBar.ButtonX buttonX2;
        private System.Windows.Forms.Label labelIconEmpty;
        private System.Windows.Forms.Label labelIconFail;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label lblArticle;
        private System.Windows.Forms.Label lblArticleDescription;
        private System.Windows.Forms.Label lblStartTime;
        private System.Windows.Forms.Label lblQuantity;
        private System.Windows.Forms.Label lblWorkOrder;
        private DevComponents.DotNetBar.PanelEx panelEx2;
        private DevComponents.DotNetBar.PanelEx panelEx3;
        private DevComponents.DotNetBar.Controls.TextBoxX txtStartTime;
        private DevComponents.DotNetBar.Controls.TextBoxX txtQuantity;
        private DevComponents.DotNetBar.Controls.TextBoxX txtWorkOrder;
        private DevComponents.DotNetBar.Controls.TextBoxX txtArticleComments;
        private DevComponents.DotNetBar.Controls.TextBoxX txtArticleDescription;
        private DevComponents.DotNetBar.Controls.TextBoxX txtArticle;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label2;
        private Windows.Forms.OvenUI ovenUI1;
        private System.Windows.Forms.Button buttonMainView;
        private System.Windows.Forms.Label labelIconPass;

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OvenUI));
            this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
            this.label3 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.panelEx2 = new DevComponents.DotNetBar.PanelEx();
            this.txtStartTime = new DevComponents.DotNetBar.Controls.TextBoxX();
            this.txtQuantity = new DevComponents.DotNetBar.Controls.TextBoxX();
            this.txtWorkOrder = new DevComponents.DotNetBar.Controls.TextBoxX();
            this.lblStartTime = new System.Windows.Forms.Label();
            this.lblWorkOrder = new System.Windows.Forms.Label();
            this.lblQuantity = new System.Windows.Forms.Label();
            this.panelEx3 = new DevComponents.DotNetBar.PanelEx();
            this.txtArticleComments = new DevComponents.DotNetBar.Controls.TextBoxX();
            this.txtArticleDescription = new DevComponents.DotNetBar.Controls.TextBoxX();
            this.txtArticle = new DevComponents.DotNetBar.Controls.TextBoxX();
            this.label1 = new System.Windows.Forms.Label();
            this.lblArticleDescription = new System.Windows.Forms.Label();
            this.lblArticle = new System.Windows.Forms.Label();
            this.labelIconPass = new System.Windows.Forms.Label();
            this.labelIconEmpty = new System.Windows.Forms.Label();
            this.labelIconFail = new System.Windows.Forms.Label();
            this.buttonX5 = new DevComponents.DotNetBar.ButtonX();
            this.buttonX3 = new DevComponents.DotNetBar.ButtonX();
            this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
            this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
            this.ovenUI1 = new AMStudio.Windows.Forms.OvenUI();
            this.buttonMainView = new System.Windows.Forms.Button();
            this.panelEx1.SuspendLayout();
            this.panelEx2.SuspendLayout();
            this.panelEx3.SuspendLayout();
            this.SuspendLayout();
            // 
            // panelEx1
            // 
            this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
            this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
            this.panelEx1.Controls.Add(this.buttonMainView);
            this.panelEx1.Controls.Add(this.ovenUI1);
            this.panelEx1.Controls.Add(this.label3);
            this.panelEx1.Controls.Add(this.label2);
            this.panelEx1.Controls.Add(this.panelEx2);
            this.panelEx1.Controls.Add(this.panelEx3);
            this.panelEx1.Controls.Add(this.labelIconPass);
            this.panelEx1.Controls.Add(this.labelIconEmpty);
            this.panelEx1.Controls.Add(this.labelIconFail);
            this.panelEx1.Controls.Add(this.buttonX5);
            this.panelEx1.Controls.Add(this.buttonX3);
            this.panelEx1.Controls.Add(this.buttonX2);
            this.panelEx1.Controls.Add(this.buttonX1);
            this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panelEx1.Font = new System.Drawing.Font("SimSun", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.panelEx1.Location = new System.Drawing.Point(0, 0);
            this.panelEx1.Name = "panelEx1";
            this.panelEx1.Size = new System.Drawing.Size(706, 458);
            this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
            this.panelEx1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
            this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
            this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
            this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
            this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
            this.panelEx1.Style.GradientAngle = 90;
            this.panelEx1.TabIndex = 2;
            this.panelEx1.Click += new System.EventHandler(this.panelEx1_Click);
            // 
            // label3
            // 
            this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label3.AutoSize = true;
            this.label3.BackColor = System.Drawing.Color.Transparent;
            this.label3.Font = new System.Drawing.Font("Arial", 9F);
            this.label3.Location = new System.Drawing.Point(395, 5);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(66, 15);
            this.label3.TabIndex = 97;
            this.label3.Text = "WorkOrder";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.BackColor = System.Drawing.Color.Transparent;
            this.label2.Font = new System.Drawing.Font("Arial", 9F);
            this.label2.Location = new System.Drawing.Point(30, 5);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(49, 15);
            this.label2.TabIndex = 96;
            this.label2.Text = "Product";
            // 
            // panelEx2
            // 
            this.panelEx2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.panelEx2.CanvasColor = System.Drawing.SystemColors.Control;
            this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
            this.panelEx2.Controls.Add(this.txtStartTime);
            this.panelEx2.Controls.Add(this.txtQuantity);
            this.panelEx2.Controls.Add(this.txtWorkOrder);
            this.panelEx2.Controls.Add(this.lblStartTime);
            this.panelEx2.Controls.Add(this.lblWorkOrder);
            this.panelEx2.Controls.Add(this.lblQuantity);
            this.panelEx2.Location = new System.Drawing.Point(384, 11);
            this.panelEx2.Name = "panelEx2";
            this.panelEx2.Size = new System.Drawing.Size(301, 107);
            this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center;
            this.panelEx2.Style.BackColor1.Alpha = ((byte)(0));
            this.panelEx2.Style.BackColor1.Color = System.Drawing.Color.Transparent;
            this.panelEx2.Style.BackColor2.Alpha = ((byte)(0));
            this.panelEx2.Style.BackColor2.Color = System.Drawing.Color.Transparent;
            this.panelEx2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
            this.panelEx2.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
            this.panelEx2.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
            this.panelEx2.Style.GradientAngle = 90;
            this.panelEx2.TabIndex = 93;
            // 
            // txtStartTime
            // 
            this.txtStartTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
            // 
            // 
            // 
            this.txtStartTime.Border.Class = "TextBoxBorder";
            this.txtStartTime.Location = new System.Drawing.Point(122, 75);
            this.txtStartTime.Name = "txtStartTime";
            this.txtStartTime.Size = new System.Drawing.Size(167, 21);
            this.txtStartTime.TabIndex = 97;
            // 
            // txtQuantity
            // 
            this.txtQuantity.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
            // 
            // 
            // 
            this.txtQuantity.Border.Class = "TextBoxBorder";
            this.txtQuantity.Location = new System.Drawing.Point(122, 45);
            this.txtQuantity.Name = "txtQuantity";
            this.txtQuantity.Size = new System.Drawing.Size(167, 21);
            this.txtQuantity.TabIndex = 96;
            // 
            // txtWorkOrder
            // 
            this.txtWorkOrder.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
            // 
            // 
            // 
            this.txtWorkOrder.Border.Class = "TextBoxBorder";
            this.txtWorkOrder.Location = new System.Drawing.Point(122, 16);
            this.txtWorkOrder.Name = "txtWorkOrder";
            this.txtWorkOrder.Size = new System.Drawing.Size(167, 21);
            this.txtWorkOrder.TabIndex = 95;
            // 
            // lblStartTime
            // 
            this.lblStartTime.AutoSize = true;
            this.lblStartTime.BackColor = System.Drawing.Color.Transparent;
            this.lblStartTime.Font = new System.Drawing.Font("SimSun", 9F);
            this.lblStartTime.Location = new System.Drawing.Point(10, 77);
            this.lblStartTime.Name = "lblStartTime";
            this.lblStartTime.Size = new System.Drawing.Size(71, 12);
            this.lblStartTime.TabIndex = 10;
            this.lblStartTime.Text = "Start Time:";
            // 
            // lblWorkOrder
            // 
            this.lblWorkOrder.AutoSize = true;
            this.lblWorkOrder.BackColor = System.Drawing.Color.Transparent;
            this.lblWorkOrder.Font = new System.Drawing.Font("SimSun", 9F);
            this.lblWorkOrder.Location = new System.Drawing.Point(10, 18);
            this.lblWorkOrder.Name = "lblWorkOrder";
            this.lblWorkOrder.Size = new System.Drawing.Size(71, 12);
            this.lblWorkOrder.TabIndex = 4;
            this.lblWorkOrder.Text = "Work Order:";
            // 
            // lblQuantity
            // 
            this.lblQuantity.AutoSize = true;
            this.lblQuantity.BackColor = System.Drawing.Color.Transparent;
            this.lblQuantity.Font = new System.Drawing.Font("SimSun", 9F);
            this.lblQuantity.Location = new System.Drawing.Point(10, 47);
            this.lblQuantity.Name = "lblQuantity";
            this.lblQuantity.Size = new System.Drawing.Size(59, 12);
            this.lblQuantity.TabIndex = 6;
            this.lblQuantity.Text = "Quantity:";
            // 
            // panelEx3
            // 
            this.panelEx3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.panelEx3.CanvasColor = System.Drawing.SystemColors.Control;
            this.panelEx3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
            this.panelEx3.Controls.Add(this.txtArticleComments);
            this.panelEx3.Controls.Add(this.txtArticleDescription);
            this.panelEx3.Controls.Add(this.txtArticle);
            this.panelEx3.Controls.Add(this.label1);
            this.panelEx3.Controls.Add(this.lblArticleDescription);
            this.panelEx3.Controls.Add(this.lblArticle);
            this.panelEx3.Location = new System.Drawing.Point(15, 11);
            this.panelEx3.Name = "panelEx3";
            this.panelEx3.Size = new System.Drawing.Size(361, 107);
            this.panelEx3.Style.Alignment = System.Drawing.StringAlignment.Center;
            this.panelEx3.Style.BackColor1.Alpha = ((byte)(0));
            this.panelEx3.Style.BackColor1.Color = System.Drawing.Color.Transparent;
            this.panelEx3.Style.BackColor2.Alpha = ((byte)(0));
            this.panelEx3.Style.BackColor2.Color = System.Drawing.Color.Transparent;
            this.panelEx3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
            this.panelEx3.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
            this.panelEx3.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
            this.panelEx3.Style.GradientAngle = 90;
            this.panelEx3.TabIndex = 92;
            // 
            // txtArticleComments
            // 
            this.txtArticleComments.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtArticleComments.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
            // 
            // 
            // 
            this.txtArticleComments.Border.Class = "TextBoxBorder";
            this.txtArticleComments.Location = new System.Drawing.Point(182, 75);
            this.txtArticleComments.Name = "txtArticleComments";
            this.txtArticleComments.Size = new System.Drawing.Size(167, 21);
            this.txtArticleComments.TabIndex = 95;
            // 
            // txtArticleDescription
            // 
            this.txtArticleDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtArticleDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
            // 
            // 
            // 
            this.txtArticleDescription.Border.Class = "TextBoxBorder";
            this.txtArticleDescription.Location = new System.Drawing.Point(182, 45);
            this.txtArticleDescription.Name = "txtArticleDescription";
            this.txtArticleDescription.Size = new System.Drawing.Size(167, 21);
            this.txtArticleDescription.TabIndex = 95;
            // 
            // txtArticle
            // 
            this.txtArticle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtArticle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
            // 
            // 
            // 
            this.txtArticle.Border.Class = "TextBoxBorder";
            this.txtArticle.Location = new System.Drawing.Point(182, 16);
            this.txtArticle.Name = "txtArticle";
            this.txtArticle.Size = new System.Drawing.Size(167, 21);
            this.txtArticle.TabIndex = 94;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.BackColor = System.Drawing.Color.Transparent;
            this.label1.Font = new System.Drawing.Font("SimSun", 9F);
            this.label1.Location = new System.Drawing.Point(13, 77);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(59, 12);
            this.label1.TabIndex = 16;
            this.label1.Text = "Comments:";
            // 
            // lblArticleDescription
            // 
            this.lblArticleDescription.AutoSize = true;
            this.lblArticleDescription.BackColor = System.Drawing.Color.Transparent;
            this.lblArticleDescription.Font = new System.Drawing.Font("SimSun", 9F);
            this.lblArticleDescription.Location = new System.Drawing.Point(13, 47);
            this.lblArticleDescription.Name = "lblArticleDescription";
            this.lblArticleDescription.Size = new System.Drawing.Size(77, 12);
            this.lblArticleDescription.TabIndex = 14;
            this.lblArticleDescription.Text = "Description:";
            // 
            // lblArticle
            // 
            this.lblArticle.AutoSize = true;
            this.lblArticle.BackColor = System.Drawing.Color.Transparent;
            this.lblArticle.Font = new System.Drawing.Font("SimSun", 9F);
            this.lblArticle.Location = new System.Drawing.Point(13, 18);
            this.lblArticle.Name = "lblArticle";
            this.lblArticle.Size = new System.Drawing.Size(35, 12);
            this.lblArticle.TabIndex = 12;
            this.lblArticle.Text = "Name:";
            // 
            // labelIconPass
            // 
            this.labelIconPass.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.labelIconPass.BackColor = System.Drawing.Color.Transparent;
            this.labelIconPass.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelIconPass.Image = ((System.Drawing.Image)(resources.GetObject("labelIconPass.Image")));
            this.labelIconPass.Location = new System.Drawing.Point(636, 388);
            this.labelIconPass.Name = "labelIconPass";
            this.labelIconPass.Size = new System.Drawing.Size(67, 17);
            this.labelIconPass.TabIndex = 63;
            this.labelIconPass.Text = "PASS";
            this.labelIconPass.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // labelIconEmpty
            // 
            this.labelIconEmpty.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.labelIconEmpty.BackColor = System.Drawing.Color.Transparent;
            this.labelIconEmpty.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelIconEmpty.Image = ((System.Drawing.Image)(resources.GetObject("labelIconEmpty.Image")));
            this.labelIconEmpty.Location = new System.Drawing.Point(636, 438);
            this.labelIconEmpty.Name = "labelIconEmpty";
            this.labelIconEmpty.Size = new System.Drawing.Size(67, 17);
            this.labelIconEmpty.TabIndex = 65;
            this.labelIconEmpty.Text = "EMPTY";
            this.labelIconEmpty.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // labelIconFail
            // 
            this.labelIconFail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.labelIconFail.BackColor = System.Drawing.Color.Transparent;
            this.labelIconFail.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelIconFail.Image = ((System.Drawing.Image)(resources.GetObject("labelIconFail.Image")));
            this.labelIconFail.Location = new System.Drawing.Point(636, 413);
            this.labelIconFail.Name = "labelIconFail";
            this.labelIconFail.Size = new System.Drawing.Size(67, 17);
            this.labelIconFail.TabIndex = 64;
            this.labelIconFail.Text = "FAIL";
            this.labelIconFail.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // buttonX5
            // 
            this.buttonX5.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonX5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.buttonX5.Location = new System.Drawing.Point(15, 334);
            this.buttonX5.Name = "buttonX5";
            this.buttonX5.Size = new System.Drawing.Size(65, 56);
            this.buttonX5.TabIndex = 61;
            this.buttonX5.Text = "Reset";
            // 
            // buttonX3
            // 
            this.buttonX3.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonX3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.buttonX3.Location = new System.Drawing.Point(15, 272);
            this.buttonX3.Name = "buttonX3";
            this.buttonX3.Size = new System.Drawing.Size(65, 56);
            this.buttonX3.TabIndex = 60;
            this.buttonX3.Text = "Retry";
            // 
            // buttonX2
            // 
            this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonX2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.buttonX2.Location = new System.Drawing.Point(15, 210);
            this.buttonX2.Name = "buttonX2";
            this.buttonX2.Size = new System.Drawing.Size(65, 56);
            this.buttonX2.TabIndex = 59;
            this.buttonX2.Text = "Reject";
            // 
            // buttonX1
            // 
            this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonX1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.buttonX1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.buttonX1.Location = new System.Drawing.Point(15, 148);
            this.buttonX1.Name = "buttonX1";
            this.buttonX1.Size = new System.Drawing.Size(65, 56);
            this.buttonX1.TabIndex = 58;
            this.buttonX1.Text = "Next";
            // 
            // ovenUI1
            // 
            this.ovenUI1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.ovenUI1.Angle = 0D;
            this.ovenUI1.Clockwise = true;
            this.ovenUI1.Holes = 90;
            this.ovenUI1.Location = new System.Drawing.Point(118, 124);
            this.ovenUI1.Name = "ovenUI1";
            this.ovenUI1.Size = new System.Drawing.Size(512, 334);
            this.ovenUI1.StartHole = 0;
            this.ovenUI1.TabIndex = 98;
            // 
            // buttonMainView
            // 
            this.buttonMainView.Location = new System.Drawing.Point(610, 135);
            this.buttonMainView.Name = "buttonMainView";
            this.buttonMainView.Size = new System.Drawing.Size(75, 54);
            this.buttonMainView.TabIndex = 99;
            this.buttonMainView.Text = "MainView";
            this.buttonMainView.UseVisualStyleBackColor = true;
            this.buttonMainView.Click += new System.EventHandler(this.buttonMainView_Click);
            // 
            // OvenUI
            // 
            this.Controls.Add(this.panelEx1);
            this.Name = "OvenUI";
            this.Size = new System.Drawing.Size(706, 458);
            this.Load += new System.EventHandler(this.OvenUI_Load);
            this.panelEx1.ResumeLayout(false);
            this.panelEx1.PerformLayout();
            this.panelEx2.ResumeLayout(false);
            this.panelEx2.PerformLayout();
            this.panelEx3.ResumeLayout(false);
            this.panelEx3.PerformLayout();
            this.ResumeLayout(false);

        }

        private void panelEx1_Click(object sender, EventArgs e)
        {

        }

        private void OvenUI_Load(object sender, EventArgs e)
        {
            //this.nestTableUI1.HoleClickEventHandler = new EventHandler<Windows.Forms.HoleEventArgs>(HoleSelect);
            base.SubscribeEvent("MANAGER_RET");
        }
        private void HoleSelect(object sender, Windows.Forms.HoleEventArgs e)
        {
            //EventBroker.RegisterPublisher("ACTIVE_STATION1UI", this, "ACTIVE_STATION1UI");
            string stationName = "StationUI" + e.SelectedItem.ToString("00");
            Shell.ActiveModule(stationName);
        }

        protected override void UIDB_RfreshTag(Common.UserInterfaceItem item)
        {
            if (item.RelatedControl is DevComponents.DotNetBar.ButtonX)
            {
                DevComponents.DotNetBar.ButtonX button = item.RelatedControl as DevComponents.DotNetBar.ButtonX;
                if ((bool)item.value)
                {
                    //button.Enabled = true;
                    button.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2003;
                    button.Checked = true;
                }
                else
                {
                    //button.Enabled = false;
                    button.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
                    button.Checked = false;
                }
            }
        }


        public override bool ActivateUI()
        {
            if (!this.initialized)
            {
                this.SetUserPrivilige(null, null);
                EventBroker.RegisterSubscriber("SET_USER_PRIVILIGE", new EventHandler(SetUserPrivilige));
            }
            bool result = base.ActivateUI();
            return result;
        }
        protected virtual void SetUserPrivilige(object sender, EventArgs e)
        {
            Language_InitializeControl(this);          
        }
        private int nestid = 0;
        protected override void UIDB_ConnectTagAction(Common.UserInterfaceItem item)
        {
            item.RelatedControl.Click += (sender, e) =>
                {
                    DevComponents.DotNetBar.ButtonX button = item.RelatedControl as DevComponents.DotNetBar.ButtonX;
                    //if (button.Checked)
                    //{
                        SendMessage("UIITEM_ACTION", item);
                    //}
                };
        }
        protected override void BackGroud_EventHandler(object sender, DelegateDispather.StationEventArgs e)
        {
            base.BackGroud_EventHandler(sender, e);
            if (e.From == "MANAGER")
            {
                switch (e.Command)
                {
                    case "ACTIVE_ORDER":
                        if (WorkorderDB.ActiveProduct != null)
                        {
                            this.txtArticle.Text = WorkorderDB.ActiveProduct.Name;
                            this.txtArticleDescription.Text = WorkorderDB.ActiveProduct.Description;
                            this.txtArticleComments.Text = WorkorderDB.ActiveProduct.Comments;
                        }
                        if (WorkorderDB.ActiveOrder != null)
                        {
                            this.txtWorkOrder.Text = WorkorderDB.ActiveOrder.Name;
                            this.txtStartTime.Text = WorkorderDB.ActiveOrder.StartTime;
                            this.txtQuantity.Text = WorkorderDB.ActiveOrder.Quantity.ToString();
                        }
                        break;

                }
            }
        }

        private void buttonMainView_Click(object sender, EventArgs e)
        {

        }
    }
}
